package cn.wjh.business.service.impl;

import cn.wjh.business.service.ILanguageService;
import cn.wjh.business.service.IProductService;
import cn.wjh.business.service.ITLateSysService;
import cn.wjh.business.service.ITranslateService;
import cn.wjh.system.service.ISysUserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.LinkedHashMap;
import java.util.Map;

@Service
public class TLateSysServiceImpl implements ITLateSysService {
	@Resource
	private ISysUserService sysUserService;//用户服务
	@Resource
	private ILanguageService languageService;//语言服务
	@Resource
	private IProductService productService;//产品服务
	@Resource
	private ITranslateService translateService;//翻译服务

	@Override
	public Map<String, Long> statistics() {
		Map<String, Long> map = new LinkedHashMap<>();
		map.put("产品",productService.count());
		map.put("语言",languageService.count());
		map.put("词库",translateService.count());
		map.put("用户",sysUserService.count());
		return map;
	}
}
